/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.skywork.gui.component;

import com.jtattoo.plaf.luna.LunaLookAndFeel;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import org.skywork.dal.system.ConnectorDAO;
import org.skywork.gui.component.basic.BuscadorEntidades;
import org.skywork.gui.component.basic.GestionPersona;
import org.skywork.gui.system.SystemGUI;
import org.swing.container.TaskPane;
import org.swing.optionpane.MessagePane;
import org.swing.window.Form;

/**
 *
 * @author Admin
 */
public class FormExample extends Form {
    
    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(new LunaLookAndFeel());
        } catch (UnsupportedLookAndFeelException ex) {
            
        }
        ConnectorDAO.cargarAtributosDeConexion("ejemplo.txt");
        MessagePane.BACKGROUND_TEXT = new Color(238,238,238);
        JFrame.setDefaultLookAndFeelDecorated(true);
        TaskPane containerPane = new TaskPane(3);
        containerPane.setBackground(Color.DARK_GRAY);
        Form f = new Form(1024,640);
        f.setExtendedState(JFrame.MAXIMIZED_BOTH);
        f.setDesign("SkyWork 2.11.8");
        GestionPersona registrar = new GestionPersona();
//        registrar.setBackground(new Color(0, 0, 0, 0.3f));
//        registrar.setColorPrimary(new Color(0, 0, 0, 0.5f));
//        registrar.setColorSecondary(new Color(0, 0, 0, 0.5f));
        
        BuscadorEntidades busEntidades = new BuscadorEntidades();
        
        f.add(containerPane); containerPane.insertComponent(registrar);
        containerPane.insertComponent(busEntidades);
        
        containerPane.setBackgroundStatus(Color.GREEN);
        containerPane.setColorBorderLine(Color.BLUE);
        containerPane.setVisual(SystemGUI.getLabel());
        f.setVisible(true); f.enabledClosedProcess();
        containerPane.setBounds(0,0,f.getWidth() - 10,f.getHeight() - 30);
        containerPane.responsiveComponents();
        //containerPane.setBackgroundImageTask(Tools.createIconSystem("imagen.jpg"));
        //containerPane.setBackgroundColorTask(new Color(28,28,28));
    }
    
}
